﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Personal/Personal_Master.Master" AutoEventWireup="true" CodeBehind="NhomthuchienDT.aspx.cs" Inherits="NCKH.Personal.NhomthuchienDT" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h2>NHÓM NGHIÊN CỨU KHOA HỌC</h2><br />
    <asp:Panel ID="plNhom" runat="server" Visible="true">
        <table style="width: 288px; height: 137px; margin-left:250px">
            <tr>
                <td>Tên nhóm </td>
                <td><asp:TextBox ID="txtTennhom" runat="server" Width="162px" Height="21px"></asp:TextBox></td>
            </tr>
            <tr>
                <td>Đơn vị</td>
                <td><asp:DropDownList ID="ddlDonvi" runat="server">
                    <asp:ListItem>--Chọn đơn vị--</asp:ListItem>
                    </asp:DropDownList></td>
            </tr>
            <tr>
                <td></td>
                <td><asp:Button ID="btnLapnhom" runat="server" Text="Lập nhóm" Height="31px" Width="75px" OnClick="btnLapnhom_Click" /></td>
            </tr>
        </table>
    </asp:Panel><br /><br />
    <hr />
    <asp:Panel ID="plThanhvien" runat="server" Visible="false">
        <h3>Thành viên nhóm</h3>
        <asp:TextBox ID="txtTimkiem" runat="server" Text="Tìm kiếm..." Width="188px"></asp:TextBox>&nbsp;&nbsp;
        Đơn vị <asp:DropDownList ID="ddlDonviTV" runat="server">
            <asp:ListItem>--Chọn đơn vị--</asp:ListItem>
               </asp:DropDownList>&nbsp;&nbsp;
        <asp:Button ID="btnTim" runat="server" Text="Tìm tên" Height="32px" Width="74px" />
        <asp:GridView ID="grvHienDS" runat="server"
             AutoGenerateColumns="false" DataKeyNames="MaTK"
            OnRowCommand="grvHienDS_RowCommand" OnRowDataBound="grvHienDS_RowDataBound" >
            <Columns>
                <%--<asp:TemplateField HeaderText="STT">
                    <ItemTemplate>
                        <%# Container.DataItemIndex +1 %>
                    </ItemTemplate>
                </asp:TemplateField>--%>
                <asp:BoundField DataField="Tendangnhap" HeaderText="Tên đăng nhập"/>
                <asp:BoundField DataField="Email" HeaderText="Email" />
                <asp:TemplateField HeaderText="Vai trò">
                    <ItemTemplate>
                        <asp:DropDownList ID="ddlVaitro" runat="server">
                            <asp:ListItem>--Chọn vai trò--</asp:ListItem>
                            <asp:ListItem Value="Chunhiem" Text="Chủ nhiệm"></asp:ListItem>
                            <asp:ListItem Value="Thanhvien" Text="Thành viên"></asp:ListItem>
                        </asp:DropDownList>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Thêm thành viên">
                    <ItemTemplate>
                        <asp:ImageButton ID="lbntThem" runat="server" 
                            ImageUrl="~/Images/group_add.png"
                            CommandArgument='<%# Eval("MaTK") %>'
                            CommandName="them"/>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
    </asp:Panel>
    <asp:Label ID="lblthongbao" runat="server"></asp:Label>
</asp:Content>
